package edu.java.lectures.lec06.abstrclasses;

public abstract class Figure {// extends Object {

    private double a;

    public Figure() {
    }

    public Figure(double a) {
	this.a = a;
    }

    public Figure getMiSelf() {
	return this;
    }

    // --- Methods (abstract) --------------------------------------------------

    public abstract double calculatePerimeter();

    public abstract double calculateSurface();

    // --- Getters and Setters -------------------------------------------------

    public double getA() {
	return a;
    }

    public void setA(double a) {
	this.a = a;
    }

    // --- Static Methods ------------------------------------------------------
    public static void printInfo() {
	System.out.println("Print information");
    }
}
